﻿using OA.Model.MyAttribute;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;
//using System.Web.DynamicData;

namespace OA.Model
{
    public class VKnowledge
    {
        public int ID { get; set; }

        public DateTime CreateDateTime { get; set; }

        public int Status { get; set; }

        /// <summary>
        ///  知识类型
        /// </summary>
       // [Index("KnowledgeGroup")]
        [Display(Name = "类型")]
        [Tag(TagEnum.Select, "required", "类型", "")]
        public int GroupID { get; set; }

        [MaxLength(50)]
        [Display(Name = "标题")]
        [Tag(TagEnum.Text, "required", "标题", 2, 50)]
        [Required]
        public string Title { get; set; }

        [Display(Name = "作者")]
        [Tag(TagEnum.Text, "required", "作者", 2, 50)]
        public string Author { get; set; }

      
        public string Name { get; set; }

        /// <summary>
        /// 置顶
        /// </summary>
        [Display(Name = "置顶")]
        [Tag(TagEnum.Switch, "required", "置顶", 2, 20)]
        public bool IsTop { get; set; }        
    }


   
}
